package com.codefish.codefish_blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Blob;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 博客文件类
 *
 * @author codefish
 * @since 2022-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BlogFile implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文件对应的MD5值
     */
    private String fileMd5Hash;

    /**
     * 文件数据
     */
    private byte[] fileData;


}
